﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BTGISWASECO.DataLayer;

/// <summary>
/// Summary description for UtilitiesXuLyDomain
/// </summary>
/// 
namespace BTGISWASECO.BusinessEntities
{
    public class UtilitiesXuLyDomain
    {
        public UtilitiesXuLyDomain()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public List<DMChungEntities> GetDomains1(string NamDomain)
        {
            //DMChungEntities DmChung = new DMChungEntities();
            switch (NamDomain)
            {

                case "HuongDongChay":
                    {
                        DMHuongDongChayDAL.GetList();                       
                        return DMHuongDongChayDAL.ListMota;
                    }
                case "TieuChuanOngNuoc":
                    {
                        DMTieuChuanOngNuocDAL.GetList();
                        return DMTieuChuanOngNuocDAL.ListMota;
                    }
                    
                default:
                    return null;


            }
        }

        public List<DMChungEntities> GetDomains2(string NamDomain)
        {
            //DMChungEntities DmChung = new DMChungEntities();
            switch (NamDomain)
            {

                case "HuongDongChay":
                    {
                        DMHuongDongChayDAL.GetList();
                        return DMHuongDongChayDAL.ListMota;
                    }
                case "TieuChuanOngNuoc":
                    {
                        DMTieuChuanOngNuocDAL.GetList();
                        return DMTieuChuanOngNuocDAL.ListMota;
                    }

                default:
                    return null;


            }
        }

        public System.Collections.ArrayList GetDomains(string NamDomain)
        {
            //DMChungEntities DmChung = new DMChungEntities();
            System.Collections.ArrayList resultList = new System.Collections.ArrayList();
            switch (NamDomain)
            {

                case "HuongDongChay":
                    {

                        resultList.Add(DMHuongDongChayDAL.GetList());
                    }
                    break;
                case "TieuChuanOngNuoc":
                    {
                        //DMTieuChuanOngNuocDAL.GetList();
                        resultList.Add(DMTieuChuanOngNuocDAL.GetList());
                    }
                    break;
                default:
                    return null;


            }
            return resultList;
        }
    }
}